package com.huazai.ServletStudy;

public abstract class Person {
    /**
     * 这是一个人的一天。
     */
    public final void oneDay() {
        getUp();
        washFace();
        eatBreakfast();
        doSome();
        eatDinner();
        goToTheBed();
    }
    public void getUp() {
        System.out.println("get up");
    }

    public void washFace() {
        System.out.println("wash face");
    }

    public void eatBreakfast() {
        System.out.println("eat breakfast chi ao li gei");
    }

    public abstract void doSome();

    public void eatDinner() {
        System.out.println("吃晚饭");
    }

    public void goToTheBed() {
        System.out.println("上床睡觉");
    }
}
